package com.kws.system.mapper.merchant;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.kws.system.domain.TbMerchant;
import com.kws.system.domain.merchant.QueryMerchantSettlementRq;
import com.kws.system.domain.merchant.info.QueryMerchantExamineInfo;
import com.kws.system.domain.merchant.info.QueryMerchantSettlementInfo;
import org.apache.ibatis.annotations.Param;

public interface MerchantSettlementMapper extends BaseMapper<TbMerchant> {
    Page<QueryMerchantSettlementInfo> queryMerchantSettlementPage(@Param("page") Page<QueryMerchantSettlementInfo> page, @Param("query") QueryMerchantSettlementRq query);

    QueryMerchantExamineInfo queryMerchantSettlementById(@Param("id") Long id);

    boolean deleteMerchantSettlementById(@Param("id") Long id,@Param("userId") String userId);

    void updateMerchantStatus(@Param("status") Integer status, @Param("userId") String userId,@Param("id") Long id);

}
